<!DCOTYPE HTML>
<html>
<head>
	<meta charset="UTF-8" />
	<title>社区管理</title>
	<link rel="stylesheet" href="__PUBLIC__/Admin/libs/bootstrap-3.3.0/css/bootstrap.min.css"  />

	<script type="text/javascript" src="__PUBLIC__/Admin/js/jquery.1.11.1.min.js"></script>
	<script type="text/javascript" scr="__PIUBLIC__/Admin/libs/bootstrap-3.3.0/js/bootstrap.min.js"></script>

<style>
table{margin-top: 20px; text-align:center;}
td{padding-left: 10px;}
tr{height: 30px; border-bottom: 1px solid #ccc; }
</style>

</head>
<body>
<nav class="navbar navbar-default" role="navigation">
    <div class="container-fluid">
    <div class="navbar-header">
        <a class="navbar-brand" href="#">后台</a>
    </div>
    <div>
        <ul class="nav navbar-nav">
            <li><a href="#">课程</a></li>
            <li class="active"><a href="{:U('index')}">社区</a></li>
            <li><a href="{:U('/article/index')}">文章</a></li>
            <li><a href="#">用户</a></li>
            <li><a href="#">设置</a></li>
        </ul>
    </div>
    </div>
</nav>
<div class="container">
	<div class="col-md-2" style="margin-top:30px; height:100%; border-right:1px solid #ccc;">
		<div style="margin-top:30px;">
			<a href="{:U('/CommunityType/index')}">社区类型管理</a>
		</div>
		<div>
			<a href="{:U('index')}">社区管理</a>
		</div>
	</div>
	<div class="col-md-10">
		<h1 style="text-align:center;">社区管理</h1>
		<div style="text-align:right;">
			<p>第{$page}页 共{$maxpage}页  共{$count}个</p>
		</div>
		<table cellspacing="10" align="center">
			<tr style="color:#428bca;">
				<td>社区ID</td>
				<td>社区名</td>
				<td>社区类型</td>
				<td>社区图标</td>
				<td>创建者</td>
				<td>创建时间</td>
				<td>社区状态</td>
				<td>操作</td>
			</tr>
		<volist name="data" id="vo">
			<tr>
				<td>{$vo.id}</td>
				<td>{$vo.comm_name}</td>
				<td>{$vo.comm_type}</td>
				<td>{$vo.comm_icon}</td>
				<td>{$vo.create_user}</td>
				<td>{$vo.create_time}</td>
				<td>{$vo.status}</td>
				<td>
					<a href="{:U('delete')}?id={$vo.id}">删除</a>
				</td>
			</tr>
		</volist>
		</table>
		<div style="text-align: center; margin-top: 50px;">
			<for start="1" end="$maxpage+1">
				<a href="{:U('index')}?page={$i}" style="margin: 5px;">{$i}</a>
			</for>
		</div>
	</div>
</div>
</body>
<html>
